puts "中文"
p /Ruby/ =~ "Diamond" #=> nil
puts /Ruby/ =~ "Diamond" #=> nil 不会输出
print /Ruby/ =~ "Diamond" #=> nil 不会输出

begin
  def openFile(fileName)
    file_open = File.open(fileName)
    file_open.each_line do |line|
      print line
    end
    file_open.close
  end
end

fileName = "a.rb"

openFile(fileName)